package cn.sunline.dreamvalue.dto;

import lombok.Data;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * @author 11292
 * @title: DreamValueAddInDTO
 * @projectName dream-value
 * @description: 调增kafka消息体
 * @date 2020/5/817:10
 */
@Data
public class DreamValueAddInDTO  {
    //梦想账号
    private String dreamValueNo;
    //梦想值类型
    private String type;
    //交易描述
    private String transDesc;
    //交易梦想值
    private Integer dreamValue;
    //交易流水号
    private String transNo;
    //交易日期
    private String date;
    //交易时间
    private String time;

    public String getDreamValueNo() {
        return dreamValueNo;
    }

    public void setDreamValueNo(String dreamValueNo) {
        this.dreamValueNo = dreamValueNo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTransDesc() {
        return transDesc;
    }

    public void setTransDesc(String transDesc) throws UnsupportedEncodingException {
        this.transDesc = URLDecoder.decode(transDesc,"UTF-8");
    }

    public Integer getDreamValue() {
        return dreamValue;
    }

    public void setDreamValue(Integer dreamValue) {
        this.dreamValue = dreamValue;
    }

    public String getTransNo() {
        return transNo;
    }

    public void setTransNo(String transNo) {
        this.transNo = transNo;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
